home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Pict2Ascii 1.03 / Src / ImageLight.h < prev    next >
Encoding:
Text File  |  1997-05-19  |  1.2 KB  |  43 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    ImageLight.h                                    ©1997 BB's Team inc. All rights reserved
  3. // =================================================================================
  4.  
  5. #pragma once
  6.  
  7. #include "PLConstants.h"
  8. #include "GreyGWorld.h"
  9. #include <UTextTraits.h>
  10.  
  11. class ImageLight {
  12.  
  13.     public:
  14.                                 ImageLight (void);
  15.         virtual                 ~ImageLight();
  16.  
  17.         void                    SetTextTraits (TextTraitsRecord &);
  18.         void                    SetGreyWorld (GreyGWorld*);
  19.  
  20.         void                    Update (void);
  21.         Int32                    GetTextSize (void);
  22.         Boolean                IsUpToDate (void);
  23.         void                    MakeRoom (Boolean force = false);
  24.  
  25.         Int32                    GetWidth   (void)     { return mWidth  ;    }
  26.         Int32                    GetWidthN  (void)     { return mWidthN ;    }
  27.         Int32                    GetHeightN (void)        { return mHeightN;    }
  28.         Handle                GetLight (void)        { return mLight;        }
  29.         float                    operator[] (int n)    { return light(n);    }
  30.         Int32                    GetPictWidth (void)    { return mPictWidth;    }
  31.         void                    GetMinMax (float &min, float &max);
  32.         
  33.     protected:
  34.         void                    SetLineCol (void);
  35.         float&                light (int);
  36.         Int32                    mPictWidth, mPictHeight;
  37.         Boolean                mUpToDate;
  38.         Handle                mLight;
  39.         GreyGWorld            *mGrey;
  40.         Int32                    mWidth , mHeight;
  41.         Int32                    mWidthN, mHeightN;
  42. };
  43.